package com.bjsxt.livegoods.hotproduct.client.service.impl;

import com.bjsxt.livegoods.hotproduct.client.service.HotProductService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class HotProductServiceImpl implements HotProductService {
    @Override
    public Map<String, Object> findHotProducts(String city) {
        Map<String, Object> result = new HashMap<>();
        result.put("status", 200);

        List<Map<String, Object>> data = new ArrayList<>();
        Map<String, Object> map = new HashMap<>();
        map.put("id", "6298662abdddca07e547f11c");
        map.put("title", "北京豪宅，独立别墅");
        map.put("img", "http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUyoiAEkhqAACipnT_TbQ492.jpg");
        map.put("link", "/details?id=6298662abdddca07e547f11c");
        data.add(map);
        data.add(map);
        data.add(map);
        data.add(map);

        result.put("data", data);
        return result;
    }
}
